<!doctype html>
<html>
    <head>
        <!-- meta -->
        <!-- meta -->
        <title>Basic usage</title>
        <!-- css -->
        <link href="../styles/examples.css" rel="stylesheet"/>
        <link href="../../source/styles/nova.common.css" rel="stylesheet"/>
        <link href="../../source/styles/nova.css" rel="stylesheet"/>
        <link href="../../source/styles/nova.flexigrid.css" rel="stylesheet"/>
        <!-- css -->
        <!-- script -->
        <script src="../js/jquery.js"></script>
        <script src="../../source/js/nova.core.js"></script>
        <script src="../../source/js/nova.grid.js"></script>
        <script src="../../source/js/nova.flexigrid.js"></script>
        <script src="../js/people.js"></script>
        <!-- script -->
    </head>
    <body>
        <!-- nav -->
        <!-- nav -->
        <!-- description -->
        <div class="description">Basic usage</div>
        <!-- description -->
        <div id="example" class="n-content">
            <div id="grid" class="n-grid n-widget"></div>

            <script>
              $("#grid").flexigrid({

	url:"listAjax.xml",

	dataType: 'xml',
	colModel : [
		{display: 'id', name : 'id', width : 40,  align: 'center', hide: true},
		{display: 'registrarName', name : 'registrarName', width : 80,  align: 'left'},
		{display: 'contactorName', name : 'contactorName', width : 120,  align: 'left'},
		{display: 'telphone', name : 'telphone', width : 130,  align: 'left'},
		{display: 'mobile', name : 'mobile', width : 80,  align: 'center'},
        {display: 'recordName', name : 'recordName', width : 80,  align: 'center'},
        {display: 'productTypeName', name : 'productTypeName', width : 80,  align: 'center'},
        {display: 'dateCreated', name : 'dateCreated', width : 80,  align: 'center'},
        {display: 'expiredDate', name : 'expiredDate', width : 80,  align: 'center'}
		],

	sortorder: "asc",

	usepager: true,

	title: '列表列表',
	useRp: true,

	rp: 15,

	width:'auto',

	//onSubmit: addFormData,
	onSuccess: showPhone,

	height: 'auto'

});
function showPhone(){
$('.phone div').click(function() {
  alert(this.innerHTML)
});
};
</script>
            </script>
        </div>
        <!-- tools -->
        <!-- tools -->
    </body>
</html>


